package com.zlsy.secondtime.threadcoreknowledge.createthreads;

/**
 * @author zhouliang
 * @date 2020/5/14 11:03
 * 用runable方式创建线程
 */
public class RunnableStyle implements Runnable {

    @Override
    public void run() {
        System.out.println("用Runnable方法实现线程");
    }


    public static void main(String[] args) {
        RunnableStyle runnableStyle = new RunnableStyle();
        Thread thread = new Thread(runnableStyle);
        thread.start();
    }
}
